//
//  Shop.m
//  动态加载
//
//  Created by student on 16/2/27.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "Shop.h"

@implementation Shop
-(instancetype)initWithDictionary:(NSDictionary *)dict
{
    self = [super init];
    if(self)
    {
        //self.name = dict[@"name"];
        //self.icon = dict[@"icon"]
        //以上变量名一样可以用下面的方法
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
+(instancetype)shopWithDictionary:(NSDictionary *)dict
{
    return [[self alloc] initWithDictionary:dict];
    
}
@end
